package com.xuecheng.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//异常处理类不在同一包下，需手动指定扫描（手动指定扫描包时，默认的扫描包会取消，也许手动添加）
@ComponentScan(
        basePackages = {"com.xuecheng.system",
                        "com.xuecheng.web"
                        })
@MapperScan("com.xuecheng.system.mappers")
public class SystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class,args);
    }
}
